package no.cicero.testframework.execution.exceptions;

import no.cicero.testframework.execution.validation.ValidationResult;
import org.apache.axis.AxisFault;

import java.util.ArrayList;
import java.util.Collection;

public class ValidationException extends ExecutionException{
    private static final long serialVersionUID = -8121877584049826777L;

	private Collection<ValidationResult> results = new ArrayList<ValidationResult>();
    public ValidationException(ValidationResult result){
		this.results.add(result);
    }

    public ValidationException(Collection<ValidationResult> results){
		this.results = results;
    }

    public ValidationException(ValidationResult result, AxisFault fault){
        super(fault);
		this.results.add(result);
    }

    public ValidationException(Collection<ValidationResult> results, AxisFault fault){
        super(fault);
		this.results = results;
    }

	public Collection<ValidationResult> getResults() {
		return results;
	}

}
